package com.alpha.feign.common;

import com.alpha.core.http.Response;
import com.alpha.feign.common.entity.Resource;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 资源对外接口
 *
 * @author chenruwan
 * @since 2022-01-01
 */
@FeignClient(value = "alpha-common", contextId = "resources")
public interface ResourceFeignClient {
    /**
     * 获取所有资源
     *
     * @return 资源列表
     */
    @GetMapping("/resources")
    Response<Page<Resource>> getResources();
}
